<!DOCTYPE html>
<html>
    <head>
        <title><{$title}> <{$config.SITE_NAME}></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="<{$config.SITE_URL}>/images/common.css"/>
        <script src="<{$config.SITE_URL}>/include/js/jq.js"></script>
        <{$headext}>
        <script type="text/javascript">
            $(function(){                
                $("#search").submit(function(){
                    if($("#keywords").val().length<2 || $("#keywords").val().length>20){
                        alert('关键词太长或太短，请保持在2~12个字符内');
                        return false;
                    }
                    
                });
            })
        </script>
    </head>
    <body>
    
        <div class="wrap">
            <div style="height:30px;line-height: 30px;background-color:yellow; ">作品简介：本作品是一个B2C网站，采用smarty框架，模板与PHP分离，多次采用ajax技术。前台采用了jquery框架，实现一些常见的特效。全站自主构思开发，未借鉴任何现有代码。</div>
            <div class="head">
                <div class="logoline">
                    <div class="logo"><img src="<{$config.SITE_URL}>/images/logo.png" width="180" height="80"></div>
                    <form id="search" action="<{$config.SITE_URL}>/search.php" method="get">
                    <div class="search"><div style="width: 480px;border:3px solid #ff6666;height:35px;margin-top: 25px;padding: 0;line-height: 30px;margin-left: 100px;"><span><input name="keywords" type="text" id="keywords" style="width:396px;padding: 0;margin:0;height:32px;line-height: 32px;border:2px #dfdede solid ;float:left;"/><input name="submit" type="submit" value="搜索" style="float:left;border: none;width: 80px;height:36px;background-color: #ff9933;cursor:pointer;margin:0;padding:0;"/></span></div></div>
                    </form>
                    <div class="mybuy">
                        <div style="width: 250px;float: left;text-align: center;margin-top: 25px;"><{if $smarty.session.uid && $smarty.session.name}><p style="height:30px;line-height: 30px;">亲爱的 <b><a href="<{$config.SITE_URL}>/myhome.php"><{$smarty.session.name}></a></b> , <a href="<{$config.SITE_URL}>/ajax.php?action=logout">退出</a></p><{else}><a href="<{$config.SITE_URL}>/login.php" style="background-color:#CEE2F2;border:1px #ff6666 solid;width: 60px;height:30px;line-height: 30px;display: block;float: left;margin-left: 110px;margin-right: 10px;text-decoration: none;color:#ff6666; ">登陆</a> <a href="<{$config.SITE_URL}>/register.php" style="background-color:#CEE2F2;border:1px #ff6666 solid;width: 60px;height:30px;line-height: 30px;display: block;float: left;text-decoration: none;color:#ff6666; ">注册</a><{/if}></div>
                        <div class="gouwuche"><a href="<{$config.SITE_URL}>/cart.php" style="margin-left: 45px;text-decoration: none;">我的购物车</a></div>
                    </div>
                </div>
                <div class="daohang">
                    <div class="left"></div>
                    <div class="center">
                        <div class="cleft"><center style="font-weight: bolder;color:whitesmoke"><a href="<{$config.SITE_URL}>/type.php" style="text-decoration: none;color:whitesmoke;">所有分类</a></center></div>
                        <div class="cright">
                            <ul>
                                <li class="curr"><a href="<{$config.SITE_URL}>">首页</a></li>
                                <li>咨询</li>
                                <li>帮助</li>
                                <li>联系我们</li>
                            </ul>
                        </div>
                    </div>
                    <div class="right"></div>
                </div>
            </div>
